package com.htlwk.javapractice;


/**
 * @ClassName PrintableDemo
 * @Description TODO
 * @Author liaowenxiong
 * @Date 2024/12/7 21:46
 * @Version 1.0
 */
public class PrintableDemo {
    public static void main(String[] args) {
        printString(System.out::println);
    }

    public static void printString(Printable p) {
        p.print("Hello World");
    }
}
